{% extends 'system_template/public/base_main.html' %}
{% block cite %}
    插件安装中心
{% endblock %}
{% block content %}
    <table class="layui-table layui-form">
        <thead>
        <tr>
            <th>插件标识</th>
            <th>插件名称</th>
            <th>插件版本</th>
            <th>插件类型</th>
            <th>安装状态</th>
            <th>安装时间</th>
            <th>管理</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {% for data in data_list %}
            <tr>
                <td>{{ data.plug_logo }}</td>
                <td>{{ data.plug_name }}</td>
                <td>{{ data.plug_version }}</td>
                <td>{{ data.plug_class }}</td>
                <td>{{ data.install_status|tl_install_status }}</td>
                <td>{{ data.install_time }}</td>
                <td>{% if not data.install_status %}
                未拥有{% else %}控制
                {% endif %}</td>
                <td class="td-manage">
                    {% if not data.install_status %}
                    <a class="but_sm" title="安装插件" href="javascript:;" onclick="install_plug(this,'{{ data.plug_logo }}')">安装</a>
                    {% else %}
                    <a class="but_sm del_but" title="卸载插件" onclick="other(this,'{{ data.plug_logo }}','卸载','DELETE')" href="javascript:;">卸载</a>{% endif %}
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
    {% if not data_list %}
    <div style="text-align: center; margin-top: 100px;font-size: 18px;color: #C7C7C7;">未检测到可安装的插件</div>
    {% endif %}

{% endblock %}

